﻿<%@ Page Language="C#" MasterPageFile="~/Site.master" CodeBehind="Details.aspx.cs" Inherits="BaseSRS_CPRequests.Details" %>


<asp:Content ID="headContent" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:DynamicDataManager ID="DynamicDataManager1" runat="server" AutoLoadForeignKeys="true">
        <DataControls>
            <asp:DataControlReference ControlID="FormView1" />
        </DataControls>
    </asp:DynamicDataManager>

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>

            <asp:DynamicValidator runat="server" ID="DetailsViewValidator" ControlToValidate="FormView1" Display="None" CssClass="DDValidator" />

            <asp:FormView runat="server" ID="FormView1" DataSourceID="DetailsDataSource" OnItemDeleted="FormView1_ItemDeleted" RenderOuterTable="false">
                <ItemTemplate>
                    <h2 class="DDSubHeader">Details for Request ID:&nbsp<asp:Label runat="server" ID="Request_ID"  Text='<%# Eval("Request_ID") %>' /></h2>
                    <table id="detailsTable" class="DDDetailsTable" cellpadding="6" >
                    <div class="DD" >
                        <asp:DynamicEntity runat="server" />
                    </div>
                    </table>

                </ItemTemplate>
                <EmptyDataTemplate>
                    <div class="DDNoItem">No such item.</div>
                </EmptyDataTemplate>
            </asp:FormView>

            <asp:EntityDataSource ID="DetailsDataSource" runat="server" EnableDelete="false" AutoPage="True" EnableUpdate="True" />

            <asp:QueryExtender TargetControlID="DetailsDataSource" ID="DetailsQueryExtender" runat="server">
                <asp:DynamicRouteExpression />
            </asp:QueryExtender>

            <asp:DynamicHyperLink ID="ListHyperLink" runat="server" Action="List" CssClass="SRSShowAllRecordsLink" SkinID="SRSShowAllRecordsLink"><img src="../../Images/showall.png" alt="Show all items" border="0"/>&nbsp;Show all items</asp:DynamicHyperLink>

        </ContentTemplate>
    </asp:UpdatePanel>

                
</asp:Content>

